package com.cd.hospital.modules.service.impl;

import com.cd.hospital.modules.dao.PageviewDao;
import com.cd.hospital.modules.entity.PageviewEntity;
import com.cd.hospital.modules.service.PageviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("pageviewService")
public class PageviewServiceImpl implements PageviewService {
	@Autowired
	private PageviewDao pageviewDao;
	
	@Override
	public PageviewEntity queryObject(Integer id){
		return pageviewDao.queryObject(id);
	}
	
	@Override
	public List<PageviewEntity> queryList(Map<String, Object> map){
		return pageviewDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return pageviewDao.queryTotal(map);
	}
	
	@Override
	public void save(PageviewEntity pageview){
		pageviewDao.save(pageview);
	}
	
	@Override
	public void update(PageviewEntity pageview){
		pageviewDao.update(pageview);
	}
	
	@Override
	public void delete(Integer id){
		pageviewDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		pageviewDao.deleteBatch(ids);
	}
	
}
